package org.apache.ocean.main.name;

import java.util.Date;

import org.apache.ocean.database.DB;
import org.apache.ocean.main.util.CElement;
import org.apache.ocean.main.util.XMLUtil;
import org.jdom.Element;

public class Node implements CElement {
	@DB(primarykey=true)
  public String id;
	@DB(index=true)
  public String assignedCellId;
  public String reportedCellId;
  public String reportedOperatingRole;
  public Date dateCreated;
  public Date dateModified;
  public Long replicationId;
  public Long size;
  public Long serverNumber;
  
  public Node(Element element) throws Exception {
  	XMLUtil.reflectToObject(this, element);
  }
  
  public Element toElement() throws Exception {
  	return XMLUtil.reflectToElement("node", this);
  }
}
